package com.ccb.sc.live.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author ken
 * @version 1.0
 * @date 2022-07-31 14:45
 */
@Data
@ApiModel("总直播列表")
public class LiveStreamingListVo {

    @ApiModelProperty("直播id")
    private Long liveId;

    @ApiModelProperty("日期")
    private LocalDate date;

    @ApiModelProperty("直播名称")
    private String liveName;

    @ApiModelProperty("直播图")
    private String picture;

    @ApiModelProperty("直播开始时间")
    private LocalDateTime liveTime;

    @ApiModelProperty("直播结束时间")
    private LocalDateTime liveEndTime;

    @ApiModelProperty("直播标签")
    private String liveTag;

    @ApiModelProperty("直播内容")
    private String liveContent;

    @ApiModelProperty("公众号url")
    private String articleUrl;

    @ApiModelProperty("是否为最近一次")
    private Boolean isLast = false;

    @ApiModelProperty("是否预约")
    private Boolean reserve;

    public LocalDate getDate() {
        return liveTime.toLocalDate();
    }
}
